#ifndef __KEYS__H__
#define __KEYS__H__

#include <linux/input.h>
#include <sys/time.h>
#include <time.h>
#include <signal.h>

#define KEYS "/dev/input/event0"
#define KEY1 108
#define KEY2 103

struct key_info
{
    int dev;
};

struct keys
{
    struct input_event key_event;
    timer_t timerid_reboot;
    timer_t timerid_power;
    struct sigevent evp_reboot;
    struct sigevent evp_power;
    struct itimerspec it;
};

int xy_key_open(void);
int xy_key_press_thread_run(void);


#endif /* __KEYS__H__ */
